<template>
	<!-- <post :post="item" :key="item.id"></post> -->
	<div v-for="(item,index) in postList">
	<template v-if="index < 2">
		<el-image :src="item.image" fit="cover">
			<div slot="error" class="image-slot">
				<img src="https://wdz-1258450135.cos.ap-shanghai.myqcloud.com/layuibokemoban/images/theshy.jpg" />
			</div>
		</el-image>
	</template>
	</div>
</template>
<script>
	export default {
		name: "article_list1",
		props: {
			postList: {
				type: Array,
				default () {
				    return []
				}
			}
		},
		watch:{
			postList(v){
				this.postList = v;
				console.log(this.postList)
			}
		}
	}
</script>

<style>
</style>
